projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54d79f3
)
Update Android port
author
Po Lu
<luangruo@yahoo.com>
Mon, 27 Mar 2023 10:22:23 +0000
(18:22 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Mon, 27 Mar 2023 10:22:23 +0000
(18:22 +0800)
* src/sfnt.c (sfnt_normalize_blend): Don't crash when axis
variations are not present.
src/sfnt.c
patch
|
blob
|
history
diff --git
a/src/sfnt.c
b/src/sfnt.c
index 99649698557cefe1e6f0804121ef01675c8f1a28..f6730857f862bf95bfc1025efcf68ef5f41ccbb5 100644
(file)
--- a/
src/sfnt.c
+++ b/
src/sfnt.c
@@
-13582,7
+13582,8
@@
sfnt_normalize_blend (struct sfnt_blend *blend)
/* Now, apply axis variations, but only if the avar table has the
right number of axes. */
- if (blend->fvar->axis_count == blend->avar->axis_count)
+ if (blend->avar && (blend->fvar->axis_count
+ == blend->avar->axis_count))
{
for (i = 0; i < blend->fvar->axis_count; ++i)
{